package com.stormrage.entity.edu.rep;

import java.io.Serializable;

import com.stormrage.entity.edu.EduChapter;

public class EduChapterRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 6791128721705076628L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;
	
	private Integer viewId;

	private String chapter;

	private Integer count;

	// ------------------------------- Fields -------------------------------

	public EduChapterRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getViewId() {
		return viewId;
	}

	public void setViewId(Integer viewId) {
		this.viewId = viewId;
	}

	public String getChapter() {
		return chapter;
	}

	public void setChapter(String chapter) {
		this.chapter = chapter;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	// ------------------------------- Fields -------------------------------

	public static EduChapterRep instance(EduChapter arg0, Integer arg1, Integer arg2) {
		EduChapterRep entity = new EduChapterRep();
		entity.setSeq(arg1);
		entity.setId(arg0.getId());
		entity.setChapter(arg0.getChapter());
		entity.setCount(arg2);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " chapter - " + chapter + " count - " + count;
	}

}
